<?php

class Core_Model_Table_I18n_Language extends Database_Table
{
	protected $_name = 'core_i18n_language';

	public function getAllLanguages()
	{
		$select = $this -> select() ->where('is_active=1')->order('sort_order')-> order('title');

		$result = array();

		foreach ($this->fetchAll($select) as $row)
		{
			$result[$row -> getId()] = $row -> getTitle();
		}
		return $result;
	}

}
